Fixes the window not emitting a "notify::attached-to" signal when the
attach-widget goes away.
g_clear_object (&priv->muxer);
- g_list_free (priv->attached_windows);
- priv->attached_windows = NULL;
+ while (priv->attached_windows)
+ gtk_window_set_attached_to (priv->attached_windows->data, NULL);
G_OBJECT_CLASS (gtk_widget_parent_class)->dispose (object);
}
{
_gtk_widget_remove_attached_window (priv->attach_widget, window);
- g_object_remove_weak_pointer (priv->attach_widget, &priv->attach_widget);
priv->attach_widget = NULL;
}
}
if (priv->attach_widget)
{
_gtk_widget_add_attached_window (priv->attach_widget, window);
-
- g_object_add_weak_pointer (priv->attach_widget, &priv->attach_widget);
}
/* Update the style, as the widget path might change. */